package com.xinda.admin.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinda.admin.dao.ExamineProviderMapper;
import com.xinda.admin.pojo.Provider;
import com.xinda.admin.pojo.Region;
import com.xinda.admin.vo.ExamineVO;

@Service(value="examineService")
public class ExamineService {
	
	@Autowired
	private ExamineProviderMapper examineProviderMapper;
	
	/**
	 * 呈现待审核服务商的条数
	 */
	public Integer countExamine() {
		return examineProviderMapper.countExamine();
	}
	
	
	public List<Provider> sellectExamineProvider(Map<String,String> conditionsMap){
		return examineProviderMapper.sellectExamineProvider(conditionsMap);
	}
	
	public List<Provider> sellectUnGoExamineProvider(){
		return examineProviderMapper.sellectUnGoExamineProvider();
	}
	
	public void approveExamines(String[] ids){
		examineProviderMapper.approveExamines(ids);
	}
	
	public Provider sellectProviderById(Integer id){
		return examineProviderMapper.sellectProviderById(id);
	}
	
	public void examineProvider(ExamineVO examineVO){
		examineProviderMapper.updateProvider(examineVO);
	}
}